/*
 * =====================================================================================
 *
 *       Filename:  ipString.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  07/11/2012 10:02:44 PM
 *       Revision:  none
 *       Compiler:  gcc/g++
 *
 *         Author:  wangtengchao , wangtengchao AT gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */


#include"ipString.h"
#include"netHelp.h"
using namespace inm::net;


IpString::IpString(const in_addr_t& ipAddr)
{
	ip_ = InetNumericToPresentation(ipAddr);
}

in_addr_t IpString::toInAddr() const
{
	return InetPresentationToNumeric(ip_.data());	
}

